<template>
  <div class="container">
    <div class="header">
      <div class="title-wrapper">
        <div class="blue-line"></div>
        <h3>师德培训记录</h3>
      </div>
    </div>
    <div>
      <div>
        <div class="titles">
          <div class="title-item">培训课程</div>
          <div class="title-item">培训时间</div>
        </div>
        <div class="records">
          <div class="record-item">
            <img src="@/assets/fileFolder/u6531.png" alt="师德评价">
            <div>《新时代高校教师职业行为十项准则》学习 </div>
            <div>2025/5/23 14:18:03</div>
          </div>
          <div class="record-item">
            <img src="@/assets/fileFolder/u6531.png" alt="师德评价">
            <div>《新时代高校教师职业行为十项准则》学习 </div>
            <div>2025/5/23 14:18:03</div>
          </div>
          <div class="record-item">
            <img src="@/assets/fileFolder/u6531.png" alt="师德评价">
            <div>《新时代高校教师职业行为十项准则》学习 </div>
            <div>2025/5/23 14:18:03</div>
          </div>
          <div class="record-item">
            <img src="@/assets/fileFolder/u6531.png" alt="师德评价">
            <div>《新时代高校教师职业行为十项准则》学习 </div>
            <div>2025/5/23 14:18:03</div>
          </div>
          <div class="record-item">
            <img src="@/assets/fileFolder/u6531.png" alt="师德评价">
            <div>《新时代高校教师职业行为十项准则》学习 </div>
            <div>2025/5/23 14:18:03</div>
          </div>
          <div class="record-item">
            <img src="@/assets/fileFolder/u6531.png" alt="师德评价">
            <div>《新时代高校教师职业行为十项准则》学习 </div>
            <div>2025/5/23 14:18:03</div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import { queryEvaluationScoreApi } from '@/api/teacherEthicsConduct'

export default {
  data() {
    return {
    }
  },
  created() {
    this.getData()
  },
  methods: {
    getData(){
      queryEvaluationScoreApi().then(res => {
        console.log('获取师风师德师风分数统计结果:', res)
      })
    }
  }
}
</script>

<style scoped>
.container {
  padding: 16px;
  background-color: #FFFFFF;
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.header {
  margin-bottom: 16px;
  padding-bottom: 8px;
}

.title-wrapper {
  display: flex;
  align-items: center;
}

.blue-line {
  width: 4px;
  height: 24px;
  background-color: #1E62FF;
  margin-right: 12px;
  border-radius: 2px;
}

.header h3 {
  margin: 0;
  font-size: 18px;
  color: #333;
  font-weight: 500;
}

.titles {
  display: flex;
  margin-bottom: 12px;
  /* 调整标题容器宽度以匹配内容 */
  width: 80%;
  justify-content: space-around;
  text-align: center;
  color: #E65A6B;
}

.title-item {
  padding: 8px 16px;
  margin-right: 24px;
  /* 右上-右下-左下阴影效果 */
  box-shadow: 
    2px 4px 4px rgba(250, 219, 223, 0.8),  /* 右上阴影 */
    2px 4px 4px rgba(250, 219, 223, 0.6),   /* 右下阴影 */
    -2px 4px 4px rgba(255, 255, 255, 0.8);  /* 左下阴影（白色） */
  border-radius: 20px;
  min-width: 120px;
}

.records {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.record-item {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 4px;
  color: #606266;
  font-size: 14px;
}

.record-item img {
  width: 22px;
  height: 22px;
}

.record-item div:nth-child(2) {
  margin-right: 100px;
  min-width: 120px;
}
</style>